<form method=post class=form_auto >


<?
$Page->title='Настройки админки';
//pr($data);
//pr(Admin::get_wysiwygs());

echo Admin::show_error()
?>


<p>
<label class=text7 >Язык админки</label>  
<select name="data[lang]" >
	<option value=''>по умолчанию
	<?
	$langs = Admin::get_langs();
	if ($langs)
	foreach ($langs as $lang_id => $lang_title) 
	{
		$selected = $lang_id==$data->lang ? 'selected' : '';
		echo "\n<option $selected value={$lang_id} >{$lang_title}";
	}
	/**/
	?>

</select>

<?/*
<p>
<label class=text7 >Дизайн админки</label>  
<select name="data[theme]">
	
	<? //<option value='default'>стандартный
	
	$themes = Admin::get_themes();
	if ($themes)
	foreach ($themes as $theme) 
	{	
		$selected = $theme->id==$data->theme? 'selected' : '';
		echo "\n<option $selected value={$theme->id} >{$theme->title}";
	}
	
	?>

</select>
*/?>

<p>
<label class=text7 >Визуальный редактор</label>  
<select name="data[wysiwyg]">
	<option value=''>не использовать
	<?
	$wysiwigs = Admin::get_wysiwygs();
	if ($wysiwigs)
	foreach ($wysiwigs as $wysiwyg) 
	{
		$selected = $wysiwyg->id==$data->wysiwyg? 'selected' : '';
		echo "\n<option $selected value={$wysiwyg->id} >{$wysiwyg->title}";
	}
	
	?>

</select>

<p>
<label class=text7 >E-mail администратора</label>
<input type=text name="data[admin_email]" 
	value="<?=html($data->admin_email)?>" 
	style='width:200px;'
	>

<p>
<label class=text7 >Пароль администратора</label> 
<input type=text name="data[admin_password]" value="<?=html($data->admin_password)?>" style='width:200px;' >


<p><?=Admin::show_submits(array('show_ok'=>false));?>
</form>


